import Vue from 'vue'
import App from './App'
import router from './router'

import '../src/assets/css/global.css'

import element from '../src/plugins/element'


import axios from 'axios'

Vue.config.productionTip = false

axios.defaults.baseURL = '123'

// 请求拦截器
axios.interceptors.request.use(config => {
  console.log(config)
  config.headers.Auuuuuu = window.sessionStorage.getItem('token')
  return config
})

Vue.prototype.$http = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})